package com.ucpaas;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by:xiaoqingwen   on 2018/4/8 on 11:48
 */
@RestController
public class Controller {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String testLogLevel() {
        logger.debug("Logger Level-->{}","DEBUG");
        logger.info("Logger Level-->{}","INFO");
        logger.error("Logger Level-->{}","ERROR");
        return "aaaaaaaa";
    }
}
